import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/manager/employees/getEmployeesList',
    method: 'post',
    data:params
  })
}

export function getRoleList() {
  return request({
    url: '/manager/employees/getEmployeesRoleList',
    method: 'post'
  })
}

export function getId(id) {
  return request({
    url: '/manager/employees/getEmployeesInfoById',
    method: 'post',
    data: id
  })
}

export function operate(params) {
  return request({
    url: '/manager/employees/changeStatus',
    method: 'post',
    data: params
  })
}

export function update(params) {
  return request({
    url: '/manager/employees/updateEmployees',
    method: 'post',
    data: params
  })
}

export function add(params) {
  return request({
    url: '/manager/employees/addEmployees',
    method: 'post',
    data: params
  })
}

